3.357 \(\int \frac{x (A+B x)}{\sqrt{a+c x^2}} \, dx\)

Optimal. Leaf size=56 \[ \frac{\sqrt{a+c x^2} (2 A+B x)}{2 c}-\frac{a B \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a+c x^2}}\right )}{2 c^{3/2}} \]

[Out]

((2*A + B*x)*Sqrt[a + c*x^2])/(2*c) - (a*B*ArcTanh[(Sqrt[c]*x)/Sqrt[a + c*x^2]])/(2*c^(3/2))

________________________________________________________________________________________

Rubi [A]  time = 0.0177791, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {780, 217, 206} \[ \frac{\sqrt{a+c x^2} (2 A+B x)}{2 c}-\frac{a B \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a+c x^2}}\right )}{2 c^{3/2}} \]

Antiderivative was successfully verified.

[In]

Int[(x*(A + B*x))/Sqrt[a + c*x^2],x]

[Out]

((2*A + B*x)*Sqrt[a + c*x^2])/(2*c) - (a*B*ArcTanh[(Sqrt[c]*x)/Sqrt[a + c*x^2]])/(2*c^(3/2))

Rule 780

Int[((d_.) + (e_.)*(x_))*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(((e*f + d*g)*(2*p
 + 3) + 2*e*g*(p + 1)*x)*(a + c*x^2)^(p + 1))/(2*c*(p + 1)*(2*p + 3)), x] - Dist[(a*e*g - c*d*f*(2*p + 3))/(c*
(2*p + 3)), Int[(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g, p}, x] &&  !LeQ[p, -1]

Rule 217

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{x (A+B x)}{\sqrt{a+c x^2}} \, dx &=\frac{(2 A+B x) \sqrt{a+c x^2}}{2 c}-\frac{(a B) \int \frac{1}{\sqrt{a+c x^2}} \, dx}{2 c}\\ &=\frac{(2 A+B x) \sqrt{a+c x^2}}{2 c}-\frac{(a B) \operatorname{Subst}\left (\int \frac{1}{1-c x^2} \, dx,x,\frac{x}{\sqrt{a+c x^2}}\right )}{2 c}\\ &=\frac{(2 A+B x) \sqrt{a+c x^2}}{2 c}-\frac{a B \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a+c x^2}}\right )}{2 c^{3/2}}\\ \end{align*}

Mathematica [A]  time = 0.0319562, size = 57, normalized size = 1.02 \[ \frac{\sqrt{c} \sqrt{a+c x^2} (2 A+B x)-a B \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a+c x^2}}\right )}{2 c^{3/2}} \]

Antiderivative was successfully verified.

[In]

Integrate[(x*(A + B*x))/Sqrt[a + c*x^2],x]

[Out]

(Sqrt[c]*(2*A + B*x)*Sqrt[a + c*x^2] - a*B*ArcTanh[(Sqrt[c]*x)/Sqrt[a + c*x^2]])/(2*c^(3/2))

________________________________________________________________________________________

Maple [A]  time = 0.004, size = 55, normalized size = 1. \begin{align*}{\frac{Bx}{2\,c}\sqrt{c{x}^{2}+a}}-{\frac{aB}{2}\ln \left ( x\sqrt{c}+\sqrt{c{x}^{2}+a} \right ){c}^{-{\frac{3}{2}}}}+{\frac{A}{c}\sqrt{c{x}^{2}+a}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(B*x+A)/(c*x^2+a)^(1/2),x)

[Out]

1/2*B*x/c*(c*x^2+a)^(1/2)-1/2*B*a/c^(3/2)*ln(x*c^(1/2)+(c*x^2+a)^(1/2))+A/c*(c*x^2+a)^(1/2)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)/(c*x^2+a)^(1/2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.64721, size = 275, normalized size = 4.91 \begin{align*} \left [\frac{B a \sqrt{c} \log \left (-2 \, c x^{2} + 2 \, \sqrt{c x^{2} + a} \sqrt{c} x - a\right ) + 2 \,{\left (B c x + 2 \, A c\right )} \sqrt{c x^{2} + a}}{4 \, c^{2}}, \frac{B a \sqrt{-c} \arctan \left (\frac{\sqrt{-c} x}{\sqrt{c x^{2} + a}}\right ) +{\left (B c x + 2 \, A c\right )} \sqrt{c x^{2} + a}}{2 \, c^{2}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)/(c*x^2+a)^(1/2),x, algorithm="fricas")

[Out]

[1/4*(B*a*sqrt(c)*log(-2*c*x^2 + 2*sqrt(c*x^2 + a)*sqrt(c)*x - a) + 2*(B*c*x + 2*A*c)*sqrt(c*x^2 + a))/c^2, 1/
2*(B*a*sqrt(-c)*arctan(sqrt(-c)*x/sqrt(c*x^2 + a)) + (B*c*x + 2*A*c)*sqrt(c*x^2 + a))/c^2]

________________________________________________________________________________________

Sympy [A]  time = 4.02903, size = 70, normalized size = 1.25 \begin{align*} A \left (\begin{cases} \frac{x^{2}}{2 \sqrt{a}} & \text{for}\: c = 0 \\\frac{\sqrt{a + c x^{2}}}{c} & \text{otherwise} \end{cases}\right ) + \frac{B \sqrt{a} x \sqrt{1 + \frac{c x^{2}}{a}}}{2 c} - \frac{B a \operatorname{asinh}{\left (\frac{\sqrt{c} x}{\sqrt{a}} \right )}}{2 c^{\frac{3}{2}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)/(c*x**2+a)**(1/2),x)

[Out]

A*Piecewise((x**2/(2*sqrt(a)), Eq(c, 0)), (sqrt(a + c*x**2)/c, True)) + B*sqrt(a)*x*sqrt(1 + c*x**2/a)/(2*c) -
 B*a*asinh(sqrt(c)*x/sqrt(a))/(2*c**(3/2))

________________________________________________________________________________________

Giac [A]  time = 1.13687, size = 68, normalized size = 1.21 \begin{align*} \frac{1}{2} \, \sqrt{c x^{2} + a}{\left (\frac{B x}{c} + \frac{2 \, A}{c}\right )} + \frac{B a \log \left ({\left | -\sqrt{c} x + \sqrt{c x^{2} + a} \right |}\right )}{2 \, c^{\frac{3}{2}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)/(c*x^2+a)^(1/2),x, algorithm="giac")

[Out]

1/2*sqrt(c*x^2 + a)*(B*x/c + 2*A/c) + 1/2*B*a*log(abs(-sqrt(c)*x + sqrt(c*x^2 + a)))/c^(3/2)